3.112 \(\int \frac{(c-c \sec (e+f x))^{3/2}}{\sqrt{a+a \sec (e+f x)}} \, dx\)

Optimal. Leaf size=102 \[ \frac{2 c^2 \tan (e+f x) \log (\sec (e+f x)+1)}{f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}+\frac{c^2 \tan (e+f x) \log (\cos (e+f x))}{f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}} \]

[Out]

(c^2*Log[Cos[e + f*x]]*Tan[e + f*x])/(f*Sqrt[a + a*Sec[e + f*x]]*Sqrt[c - c*Sec[e + f*x]]) + (2*c^2*Log[1 + Se
c[e + f*x]]*Tan[e + f*x])/(f*Sqrt[a + a*Sec[e + f*x]]*Sqrt[c - c*Sec[e + f*x]])

________________________________________________________________________________________

Rubi [A]  time = 0.106863, antiderivative size = 102, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.067, Rules used = {3912, 72} \[ \frac{2 c^2 \tan (e+f x) \log (\sec (e+f x)+1)}{f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}}+\frac{c^2 \tan (e+f x) \log (\cos (e+f x))}{f \sqrt{a \sec (e+f x)+a} \sqrt{c-c \sec (e+f x)}} \]

Antiderivative was successfully verified.

[In]

Int[(c - c*Sec[e + f*x])^(3/2)/Sqrt[a + a*Sec[e + f*x]],x]

[Out]

(c^2*Log[Cos[e + f*x]]*Tan[e + f*x])/(f*Sqrt[a + a*Sec[e + f*x]]*Sqrt[c - c*Sec[e + f*x]]) + (2*c^2*Log[1 + Se
c[e + f*x]]*Tan[e + f*x])/(f*Sqrt[a + a*Sec[e + f*x]]*Sqrt[c - c*Sec[e + f*x]])

Rule 3912

Int[(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_.)*(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_))^(n_.), x_Symbol] :> Di
st[(a*c*Cot[e + f*x])/(f*Sqrt[a + b*Csc[e + f*x]]*Sqrt[c + d*Csc[e + f*x]]), Subst[Int[((a + b*x)^(m - 1/2)*(c
 + d*x)^(n - 1/2))/x, x], x, Csc[e + f*x]], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && EqQ[b*c + a*d, 0] && E
qQ[a^2 - b^2, 0]

Rule 72

Int[((e_.) + (f_.)*(x_))^(p_.)/(((a_.) + (b_.)*(x_))*((c_.) + (d_.)*(x_))), x_Symbol] :> Int[ExpandIntegrand[(
e + f*x)^p/((a + b*x)*(c + d*x)), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && IntegerQ[p]

Rubi steps

\begin{align*} \int \frac{(c-c \sec (e+f x))^{3/2}}{\sqrt{a+a \sec (e+f x)}} \, dx &=-\frac{(a c \tan (e+f x)) \operatorname{Subst}\left (\int \frac{c-c x}{x (a+a x)} \, dx,x,\sec (e+f x)\right )}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ &=-\frac{(a c \tan (e+f x)) \operatorname{Subst}\left (\int \left (\frac{c}{a x}-\frac{2 c}{a (1+x)}\right ) \, dx,x,\sec (e+f x)\right )}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ &=\frac{c^2 \log (\cos (e+f x)) \tan (e+f x)}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}+\frac{2 c^2 \log (1+\sec (e+f x)) \tan (e+f x)}{f \sqrt{a+a \sec (e+f x)} \sqrt{c-c \sec (e+f x)}}\\ \end{align*}

Mathematica [C]  time = 9.15407, size = 103, normalized size = 1.01 \[ -\frac{c \left (1+e^{i (e+f x)}\right ) \left (4 i \log \left (1+e^{i (e+f x)}\right )-i \log \left (1+e^{2 i (e+f x)}\right )+f x\right ) \sqrt{c-c \sec (e+f x)}}{f \left (-1+e^{i (e+f x)}\right ) \sqrt{a (\sec (e+f x)+1)}} \]

Antiderivative was successfully verified.

[In]

Integrate[(c - c*Sec[e + f*x])^(3/2)/Sqrt[a + a*Sec[e + f*x]],x]

[Out]

-((c*(1 + E^(I*(e + f*x)))*(f*x + (4*I)*Log[1 + E^(I*(e + f*x))] - I*Log[1 + E^((2*I)*(e + f*x))])*Sqrt[c - c*
Sec[e + f*x]])/((-1 + E^(I*(e + f*x)))*f*Sqrt[a*(1 + Sec[e + f*x])]))

________________________________________________________________________________________

Maple [A]  time = 0.287, size = 93, normalized size = 0.9 \begin{align*}{\frac{ \left ( \cos \left ( fx+e \right ) \right ) ^{2}}{af\sin \left ( fx+e \right ) \left ( -1+\cos \left ( fx+e \right ) \right ) }\ln \left ( -4\,{\frac{\cos \left ( fx+e \right ) }{ \left ( 1+\cos \left ( fx+e \right ) \right ) ^{2}}} \right ) \left ({\frac{c \left ( -1+\cos \left ( fx+e \right ) \right ) }{\cos \left ( fx+e \right ) }} \right ) ^{{\frac{3}{2}}}\sqrt{{\frac{a \left ( 1+\cos \left ( fx+e \right ) \right ) }{\cos \left ( fx+e \right ) }}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c-c*sec(f*x+e))^(3/2)/(a+a*sec(f*x+e))^(1/2),x)

[Out]

1/f/a*ln(-4*cos(f*x+e)/(1+cos(f*x+e))^2)*(c*(-1+cos(f*x+e))/cos(f*x+e))^(3/2)*cos(f*x+e)^2*(1/cos(f*x+e)*a*(1+
cos(f*x+e)))^(1/2)/sin(f*x+e)/(-1+cos(f*x+e))

________________________________________________________________________________________

Maxima [A]  time = 1.81088, size = 81, normalized size = 0.79 \begin{align*} -\frac{{\left ({\left (f x + e\right )} c + c \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right ) - 4 \, c \arctan \left (\sin \left (f x + e\right ), \cos \left (f x + e\right ) + 1\right )\right )} \sqrt{c}}{\sqrt{a} f} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c-c*sec(f*x+e))^(3/2)/(a+a*sec(f*x+e))^(1/2),x, algorithm="maxima")

[Out]

-((f*x + e)*c + c*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1) - 4*c*arctan2(sin(f*x + e), cos(f*x + e) + 1
))*sqrt(c)/(sqrt(a)*f)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (-c \sec \left (f x + e\right ) + c\right )}^{\frac{3}{2}}}{\sqrt{a \sec \left (f x + e\right ) + a}}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c-c*sec(f*x+e))^(3/2)/(a+a*sec(f*x+e))^(1/2),x, algorithm="fricas")

[Out]

integral((-c*sec(f*x + e) + c)^(3/2)/sqrt(a*sec(f*x + e) + a), x)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (- c \left (\sec{\left (e + f x \right )} - 1\right )\right )^{\frac{3}{2}}}{\sqrt{a \left (\sec{\left (e + f x \right )} + 1\right )}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c-c*sec(f*x+e))**(3/2)/(a+a*sec(f*x+e))**(1/2),x)

[Out]

Integral((-c*(sec(e + f*x) - 1))**(3/2)/sqrt(a*(sec(e + f*x) + 1)), x)

________________________________________________________________________________________

Giac [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c-c*sec(f*x+e))^(3/2)/(a+a*sec(f*x+e))^(1/2),x, algorithm="giac")

[Out]

Exception raised: TypeError